using System;

namespace ICSharpCode.TextEditor
{
    public class OSVersionUtils
    {
        public static OSVersionEntity GetOperatingSystemVersion()
        {
           // OSVersionEntity oSVersionEntity = OSVersionEntity.Unknow;
            Version version = Environment.OSVersion.Version;
            try
            {
                return (OSVersionEntity)Enum.Parse(typeof(OSVersionEntity), Convert.ToString(string.Concat(version.Major, version.Minor)));
            }
            catch
            {
                return OSVersionEntity.Unknow;
            }
        }
    }
}
